
package com.ami.kvm.jviewer.oem;

import com.ami.kvm.jviewer.Debug;
import com.ami.kvm.jviewer.JViewer;
import com.ami.kvm.jviewer.common.oem.IOEMAuthentication;
import com.ami.kvm.jviewer.common.oem.IOEMIPMICommandDialog;
import com.ami.kvm.jviewer.common.oem.IOEMJVMenu;
import com.ami.kvm.jviewer.common.oem.IOEMKvmClient;
import com.ami.kvm.jviewer.common.oem.IOEMManager;
import com.ami.kvm.jviewer.common.oem.IOEMStandAloneConnectionDialog;
import com.ami.kvm.jviewer.oem.gui.OEMIPMICommandDialog;
import com.ami.kvm.jviewer.oem.gui.OEMJVMenu;
import com.ami.kvm.jviewer.oem.gui.OEMStandAloneConnectionDialog;
import java.awt.Point;

public class OEMManager implements IOEMManager {
	public static IOEMIPMICommandDialog oemipmiCommandDialog = new OEMIPMICommandDialog(null);
	public static IOEMStandAloneConnectionDialog connectionDialog = new OEMStandAloneConnectionDialog();

	public IOEMJVMenu getOEMJVMenu() {
		return new OEMJVMenu();
	}

	public IOEMAuthentication getOEMAuthentication() {
		return new OEMAuthentication();
	}

	public IOEMKvmClient getOEMKvmClient() {
		return new OEMKVMClient();
	}

	public IOEMIPMICommandDialog getOEMIoemipmiCommandDialog() {
		return oemipmiCommandDialog;
	}

	public IOEMStandAloneConnectionDialog getOEMStandAloneConnectionDialog() {
		return connectionDialog;
	}

	public int handleOemArguments(String[] paramArrayOfString, int paramInt) {
		int i = 1;
		int j = paramInt - 1;

		if ((paramArrayOfString == null) || (paramInt <= 0)) {
			Debug.out.println("Invalid arguments in handleOemArguments()");
			return 2;
		}
		if (paramArrayOfString[j].equals("-oemfeatures")) {
			try {
				JViewer.setOEMFeatureStatus(Long.parseLong(paramArrayOfString[(j + 1)]));
			} catch (NumberFormatException localNumberFormatException) {
				Debug.out.println(localNumberFormatException);
				JViewer.setOEMFeatureStatus(0L);
			}
			if ((JViewer.getOEMFeatureStatus() & 0x20) == 32L) {
				JViewer.setKVMReconnectEnabled(true);
			}
		} else {
			i = 0;
		}
		return i;
	}

	public int setFSFrameTitle(String paramString) {
		return 0;
	}

	public int setWndFrameTitle(String paramString) {
		return 0;
	}

	public Point getWindowPosition() {
		return null;
	}
}

/*
 * Location:
 * D:\Users\tianlin\Downloads\JViewer-OEM.jar!\com\ami\kvm\jviewer\oem\
 * OEMManager.class Java compiler version: 5 (49.0) JD-Core Version: 0.7.1
 */